﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 阈值明细表
    /// </summary>
    [Table("t_threshold_detail")]
    public class ThresholdDetail
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Column("id")]
        public long Id { get; set; }

        /// <summary>
        /// 阈值id
        /// </summary>
        [Column("threshold_id")]
        public long ThresholdId { get; set; }

        /// <summary>
        /// 标签类型或标签id
        /// </summary>
        [Column("data_id")]
        public long DataId { get; set; }
    }
}
